package com.smarthospital.entity.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 作    者： yingming shen
 * 修改时间： 2020/8/15 17:11.
 * 描   述：
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description="用户对象" )
public class User implements Serializable {

    private static final long serialVersionUID = 151513153135L;

    private Long id;
    @ApiModelProperty(value = "个人登记号")
    private String registerId;

    @ApiModelProperty(value = "昵称")
    private String nickName;
    @ApiModelProperty(value = "头像")
    private String picture;
    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "微信unioId")
    private String unionId;
    @ApiModelProperty(value = "微信小程序oppenId")
    private String oppenId;

    @ApiModelProperty(value = "医院就诊卡")
    private String visitCardNumber;
    @ApiModelProperty(value = "医院 hospitalCode")
    private String hospital;

    @ApiModelProperty(value = "性别 男_1 女_2 未知为空白")
    private String gender;
    @ApiModelProperty(value = "证件类型")
    private Integer certificateType;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "婚姻状态 0_未知 1_未婚 2_已婚")
    private Integer  marryState;
    @ApiModelProperty(value = "出生年月")
    private String bornDate;
    @ApiModelProperty(value = "民族")
    private String nation;
    @ApiModelProperty(value = "国籍")
    private String country;
    @ApiModelProperty(value = "身份证号码")
    private String idCardNum;
    @ApiModelProperty(value = "身份证姓名")
    private String idCardName;

    @ApiModelProperty(value = "职业")
    private String career;
    @ApiModelProperty(value = "工作单位")
    private String workUnit;
    @ApiModelProperty(value = "居住省份")
    private String province;
    @ApiModelProperty(value = "居住城市")
    private String city;
    @ApiModelProperty(value = "详细地址")
    private String addr;


    @ApiModelProperty(value = "过敏史")
    private String allergy;
    @ApiModelProperty(value = "病人类型 一档 二档...")
    private String patientType;


    @ApiModelProperty(value = "联系人")
    private String contact;
    @ApiModelProperty(value = "联系人电话")
    private String contactphone;
    @ApiModelProperty(value = "联系人关系 父亲 母亲 朋友")
    private String contactRelation;

    @ApiModelProperty(value = "数据创建时间")
    private String createTime;
    @ApiModelProperty(value = "数据更新时间")
    private String updateTime;
    @ApiModelProperty(value = "数据生成人")
    private String creator;
    @ApiModelProperty(value = "数据更新人")
    private String updator;
    @ApiModelProperty(value = "是否授权 0_未授权 1_授权")
    private int authed;

    /**
     * 字段值
     */
    @ApiModelProperty(value = "婚姻状态值 0_未知 1_未婚 2_已婚")
    private String  marryStateStr;
    @ApiModelProperty(value = "证件类型str")
    private String certificateTypeStr;

    @ApiModelProperty(value = "角色 0_普通用户 1_医生")
    private int role;
}
